<?php
/**
 * http://code.google.com/p/php-iterator-utils/
 * @license http://www.apache.org/licenses/LICENSE-2.0.html
 * @author Seva Lapsha (seva.lapsha@gmail.com)
 */
namespace lapsha\iterators\common {
	class Wrapper implements \Iterator {
		/** @var \Iterator */
		protected $i;
		function __construct(\Iterator $i) {
			$this->i = $i;
		}
		function valid() {
			return $this->i->valid();
		}
		function rewind() {
			return $this->i->rewind();
		}
		function current() {
			return $this->i->current();
		}
		function next() {
			return $this->i->next();
		}
		function key() {
			return $this->i->key();
		}
	}
}

